﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Customer.Master" AutoEventWireup="true"
    CodeBehind="CustomerProfile.aspx.cs" Inherits="EHTSaleManager.UICustomer.CustomerProfile" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <style type="text/css">
        .style1
        {
            width: 226px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
   <h1>
        <asp:Label ID="lbCustomerProfile" runat="server" Text="Profile"></asp:Label>
    </h1>
    <div class="accountInfo" style="width: 100%;">
        <table cellspacing="0" cellpadding="0" class="data-table">
            <tr>
                <td colspan="2">
                    <span class="failureNotification">
                        <asp:Literal ID="ltrMessage" runat="server"></asp:Literal>
                    </span>
                    <asp:ValidationSummary ID="RegisterUserValidationSummary" runat="server" CssClass="failureNotification"
                        ValidationGroup="RegisterUserValidationGroup" />
                </td>
            </tr>
            <tr>
                <td align="right">
                    <asp:Label ID="lbFirstName" runat="server" Text="First name:"></asp:Label>
                </td>
                <th>
                    <asp:TextBox ID="txtFirstName" runat="server" CssClass="textEntry"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="rFirstName" runat="server" ControlToValidate="txtFirstName"
                        CssClass="failureNotification" ErrorMessage="First Name is required." ToolTip="First Name is required."
                        ValidationGroup="RegisterUserValidationGroup">*</asp:RequiredFieldValidator>
                </th>
            </tr>
            <tr>
                <td align="right">
                    <asp:Label ID="lbLastName" runat="server" Text="Last name:"></asp:Label>
                </td>
                <th>
                    <asp:TextBox ID="txtLastName" runat="server" CssClass="textEntry"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="rLastName" runat="server" ControlToValidate="txtLastName"
                        CssClass="failureNotification" ErrorMessage="Last Name is required." ToolTip="Last Name is required."
                        ValidationGroup="RegisterUserValidationGroup">*</asp:RequiredFieldValidator>
                </th>
            </tr>
            <tr>
                <td align="right">
                    <asp:Label ID="lbEmail" runat="server" Text="Email:"></asp:Label>
                </td>
                <th>
                    <asp:TextBox ID="txtEmail" runat="server" CssClass="textEntry"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="rEmail" runat="server" ControlToValidate="txtEmail"
                        CssClass="failureNotification" ErrorMessage="First Name is required." ToolTip="Email is required."
                        ValidationGroup="RegisterUserValidationGroup">*</asp:RequiredFieldValidator>
                    <asp:RegularExpressionValidator ValidationGroup="RegisterUserValidationGroup" ID="revEmail"
                        runat="server" ControlToValidate="txtEmail" CssClass="failureNotification" ErrorMessage="Email not valid"
                        ToolTip="Email not valid" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*">*</asp:RegularExpressionValidator>
                </th>
            </tr>
            <tr>
                <td align="right">
                    <asp:Label ID="lbPhone" runat="server" Text="Phone:"></asp:Label>
                </td>
                <th>
                    <asp:TextBox ID="txtPhone" runat="server" CssClass="textEntry"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="rPhone" runat="server" ControlToValidate="txtPhone"
                        CssClass="failureNotification" ErrorMessage="Phone is required." ToolTip="Phone is required."
                        ValidationGroup="RegisterUserValidationGroup">*</asp:RequiredFieldValidator>
                </th>
            </tr>
            <tr>
                <td align="right">
                    <asp:Label ID="lbFax" runat="server" Text="Fax:"></asp:Label>
                </td>
                <th>
                    <asp:TextBox ID="txtFax" runat="server" CssClass="textEntry"></asp:TextBox>
                </th>
            </tr>
            <tr>
                <td align="right">
                    <asp:Label ID="lbAddress" runat="server" Text="Address:"></asp:Label>
                </td>
                <th>
                    <asp:TextBox ID="txtAddress" runat="server" CssClass="textEntry"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="rAddress" runat="server" ControlToValidate="txtAddress"
                        CssClass="failureNotification" ErrorMessage="Address is required." ToolTip="Address is required."
                        ValidationGroup="RegisterUserValidationGroup">*</asp:RequiredFieldValidator>
                </th>
            </tr>
            <tr>
                <td align="right">
                    <asp:Label ID="lbCity" runat="server" Text="City:"></asp:Label>
                </td>
                <th>
                    <asp:TextBox ID="txtCity" runat="server" CssClass="textEntry"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="rCity" runat="server" ControlToValidate="txtCity"
                        CssClass="failureNotification" ErrorMessage="City is required." ToolTip="City is required."
                        ValidationGroup="RegisterUserValidationGroup">*</asp:RequiredFieldValidator>
                </th>
            </tr>
            <tr>
                <td align="right">
                    <asp:Label ID="lbRegion" runat="server" Text="Region:"></asp:Label>
                </td>
                <th>
                    <asp:DropDownList ID="ddlRegion" runat="server" CssClass="textEntry" OnDataBound="ddlRegion_DataBound">
                    </asp:DropDownList>
                </th>
            </tr>
            <tr>
                <td align="right">
                    <asp:Label ID="lbPostCode" runat="server" Text="Post code:"></asp:Label>
                </td>
                <th>
                    <asp:TextBox ID="txtPostCode" runat="server" CssClass="textEntry"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="rPostCode" runat="server" ControlToValidate="txtPostCode"
                        CssClass="failureNotification" ErrorMessage="City is required." ToolTip="City is required."
                        ValidationGroup="RegisterUserValidationGroup">*</asp:RequiredFieldValidator>
                </th>
            </tr>
            <tr>
                <td align="right">
                    <asp:Label ID="lbServiceLevel" runat="server" Text="Service Level:"></asp:Label>
                </td>
                <th>
                    <asp:DropDownList ID="ddlServiceLevel" runat="server" CssClass="textEntry" 
                        ondatabound="ddlServiceLevel_DataBound">                       
                    </asp:DropDownList>
                </th>
            </tr>
            <tr>
                <td align="right">
                    <asp:Label ID="lbSignature" runat="server" Text="Change Signature:"></asp:Label>
                </td>
                <th>
                    <asp:FileUpload ID="funSignature" runat="server" CssClass="textEntry" />
                </th>
            </tr>
            <tr style="text-align: left">
                <td>
                    &nbsp;
                </td>
                <th style="text-align: left">
                    <asp:Image ID="picSignature" runat="server" BorderWidth="0" Height="150px" Width="150px" />
                </th>
            </tr>
            <tr>
                <td></td>
                <th><asp:Button ID="btnSave" runat="server" Text="Save" ValidationGroup="RegisterUserValidationGroup"
                OnClick="btnSave_Click" Width="100px" /></th>
            
            </tr>
        </table>
    </div>
</asp:Content>
